package com.han.fu.api.business.model.ao;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 评论分页
 *
 * @author star
 * @date 2021-08-05
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class CommentPageAo extends BasePageAo {

    /**
     * 新闻ID
     */
    @NotBlank(message = "新闻ID不能为空")
    @Size(max = 20, message = "新闻ID最长不能超过20")
    private String newsId;

    /**
     * 回复ID
     */
    @Size(max = 20, message = "回复ID最长不能超过20")
    private String replyId;

}